package file;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-07
 * Time: 8:05
 */
public class Demo04 {
    public static void main(String[] args) {
        File file = new File("test");
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
        System.out.println("=====================");
        file.mkdir(); //创建目录
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
    }
}
